<script setup>
	const itemList = [{
			icon: "/static/user/图标5.webp",
			text: "浏览历史",
		},
		{
			icon: "/static/user/图标6.webp",
			text: "打赏我们",
		},
		{
			icon: "/static/user/图标7.webp",
			text: "更多设置",
		},
		{
			icon: "/static/user/图标8.webp",
			text: "分享应用",
		},
		{
			icon: "/static/user/图标9.webp",
			text: "意见与反馈",
		},
	];
</script>

<template>
	<view class="userLayout">
		<view class="user-box">
			<view class="user-ico-box">
				<image class="user-icon" src="/static/user/图标1.webp" mode="aspectFit"></image>
				<image class="user-icon" src="/static/user/图标2.webp" mode="aspectFit"></image>
			</view>
			<view class="user-info-box">
				<view class="user-info">
					<image class="user-img" src="@/static/user/user.png" mode="scaleToFill"></image>
					<view class="user">
						<view class="user-name">白芷茗</view>
						<view class="user-text">胸中多谋智，胜券皆可握</view>
						<view class="user-ID">UID:7654321</view>
					</view>
					<view class="user-btn">
						<text class="text">个人详情</text>
						<uni-icons type="right" size="15"></uni-icons>
					</view>
				</view>
			</view>
			<view class="user-select1-box">
				<view class="select1-box">
					<view class="select1-ico">
						<image mode="aspectFit" src="/static/user/图标3.webp"></image>
						<view class="text">我的收藏</view>
					</view>
				</view>
				<view class="select1-box select2-box">
					<view class="select1-ico">
						<image mode="aspectFit" src="/static/user/图标4.webp"></image>
						<view class="text">我的作品</view>
					</view>
				</view>
			</view>
			<view class="user-select2-box">
				<view class="select-item-box" v-for="(item, index) in itemList" :key="index">
					<view class="select-ico">
						<image mode="aspectFit" :src="item.icon"></image>
					</view>
					<view class="text">{{ item.text }}</view>
					<uni-icons type="right" size="20"></uni-icons>
				</view>
			</view>
		</view>
	</view>
</template>

<style lang="scss" scoped>
	.userLayout {
		width: 750rpx;
		//height: 1624rpx;
		background: url("@/static/user/bg.png");
		overflow: hidden;

		.user-box {
			font-family: "main2", serif;
			width: 665rpx;
			height: 100%;
			margin: 0 auto;
			overflow: hidden;

			// 图标
			.user-ico-box {
				width: 100%;
				height: 50rpx;
				text-align: right;
				margin-top: 15rpx;
				margin-bottom: 48rpx;

				.user-icon {
					width: 45rpx;
					height: 50rpx;
					margin-right: 50rpx;
				}
			}

			// 用户信息
			.user-info-box {
				width: 653rpx;
				height: 192rpx;
				border: 1rpx solid black;
				border-radius: 30rpx;
				box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.3);
				margin: 0 auto;
				background-color: rgba(255, 255, 255, 0.5);

				.user-info {
					width: 100%;
					height: 100%;
					display: flex;
					align-items: center;
					justify-content: space-evenly;

					.user-img {
						width: 123rpx;
						height: 123rpx;
						border-radius: 50%;
					}

					.user {
						width: 253rpx;
						height: 89rpx;
						display: flex;
						flex-direction: column;
						justify-content: space-between;
						font-size: 19rpx;

						.user-name {
							font-size: 30rpx;
						}
					}

					.user-btn {
						width: 120rpx;
						height: 25rpx;
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin-left: 10rpx;

						.text {
							font-size: 21rpx;
							font-weight: 400;
							line-height: 19rpx;
						}
					}
				}
			}

			// 选择1
			.user-select1-box {
				width: 665rpx;
				height: 213rpx;
				background-image: url("@/static/user/select1-bg.png");
				background-size: 100% 100%;
				background-repeat: no-repeat;
				background-position: center;
				margin: 67rpx auto;
				display: flex;
				align-items: center;
				justify-content: space-around;

				.select1-box {
					width: 139rpx;

					.select1-ico {
						width: 100%;

						image {
							width: 61rpx;
							height: 50rpx;
						}
					}

					.text {
						margin-top: 34rpx;
						font-size: 34rpx;
						color: rgba(255, 255, 255, 1);
					}
				}

				.select2-box {
					margin-left: 120rpx;
				}
			}

			// 选择2
			.user-select2-box {
				width: 661rpx;

				.select-item-box {
					width: 100%;
					height: 115rpx;
					display: flex;
					align-items: center;
					justify-content: space-around;
					border: 1px solid rgba(0, 0, 0, 0.2);
					border-radius: 30rpx;
					background: rgba(255, 255, 255, 0.7);
					box-shadow: 0 3.85px 7.69px rgba(0, 0, 0, 0.2);
					margin-bottom: 25rpx;

					.select-ico {
						width: 50rpx;
						height: 50rpx;

						image {
							width: 100%;
							height: 100%;
						}
					}

					.text {
						font-size: 30.77rpx;
						width: 50%;
					}
				}
			}
		}
	}
</style>